package com.dog.basics.bean.dto.admin.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 职位表
 * </p>
 *
 * @author guoy
 * @since 2020-03-19
 */
@Data
public class SysPositionAddDto implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 职位名称
     */
    @NotBlank(message = "职位名称不能为空")
    @Size(max = 20, message = "职位名称最大长度为20")
    @ApiModelProperty(value = "职位名称", dataType = "String", required = true)
    private String name;

    /**
     * 职位编码
     */
    @NotBlank(message = "职位编码不能为空")
    @Size(max = 20, message = "职位编码最大长度为20")
    @ApiModelProperty(value = "职位编码", dataType = "String", required = true)
    private String code;

    /**
     * 顺序
     */

    @ApiModelProperty(value = "排序值", dataType = "Integer", required = false)
    private Integer sort;

    /**
     * 状态(字典)
     */
    @NotBlank(message = "状态不能为空")
    @ApiModelProperty(value = "状态", dataType = "String", required = true)
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", dataType = "String", required = true)
    private String remark;


}
